<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">
<#include "/common/pagerForm.html">

<style>
.workUnitSelect label,input{
    float:left;
}

.workUnitSelect label{
    width:110px;
}

.searchBar.workUnitSelect ul.searchContent li{
    width:270px;
}

.searchBar.workUnitSelect ul.searchContent  li.query{
    width:90px;
    float:right;
}

</style>
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/workUnitType/selectWorkUnit" onsubmit="return dwzSearch(this, 'dialog');">
<div class="pageHeader">
    <div class="searchBar workUnitSelect">
        <ul class="searchContent">
            <li>
                <label  id="workUnitCode"><@label key="workUnitCode.C,colon">作业单元编号：</@label></label>
                <input type="text" name="workUnitCode" value="${condition.workUnitCode!''}"/>
            </li>
            <li>
                <label  id="workUnitText"><@label key="workUnitText.C,colon">作业单元描述：</@label></label>
                <input type="text" name="workUnitText" value="${condition.workUnitText!''}"/>
            </li>
            <li class="query">    
                <div class="buttonActive"><div class="buttonContent"><button type="submit"><@label key="query.B">查询</@label></button></div></div>
            </li>    
        </ul>
    </div>
</div>
</form>

<div class="pageContent" style="width:99%">
    <table class="table border" width="100%"  targetType="dialog" layoutH="150">
        <thead>
            <tr>
                <th width="30"><input type="checkbox" class="checkboxCtrl" group="workUnitId" /></th>
                <th width="100" ><@label key="workUnitCode.C">作业单元编号</@label></th>
                <th width="100" ><@label key="workUnitText.C">作业单元描述</@label></th>
                <th width="100" ><@label key="workCenterCode.C">工厂中心编号</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as workUnit>
            <tr target="workUnit_code" rel="${workUnit.workUnitCode!''}">
              <td><input type="checkbox" name="workUnitId" value="{workUnitCode:'${workUnit.workUnitCode!''}', workUnitText:'${workUnit.workUnitText!''}',workCenterCode:'${workUnit.workCenterCode!''}' }"/></td>
                <td>${workUnit.workUnitCode!''}</td>
                <td>${workUnit.workUnitText!''}</td>
                <td>${workUnit.workCenterCode!''}</td>
            </tr>
        </#list>
        <#else>
        <tr >
            <td colspan="4"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
            </td>
        </tr>
        </#if> <#else>
        <tr >
            <td colspan="4"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
            </td>
        </tr>
        </#if>
        </tbody>
    </table>
    <#include "/common/dialogPanelBar.html">
</div>
<div class="formBar">
        <ul>
            <li><div class="buttonActive"><div class="buttonContent"><button type="button" multLookup="workUnitId" warn="请选择作业单元">确定</button></div></div></li>
            <li>
            <div class="buttonActiveGrey" >
                        <div class="buttonContent" >
                            <button class="close" type="button"><@label key="close.B">关闭</@label></button>
                        </div>
                    </div>
            </li>
        
        </ul>
    </div>